package com.huangjue.backend.mapper;

import com.huangjue.backend.entity.StudentCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StudentCourseMapper {
    StudentCourse selectByUserIdAndCourseId(@Param("userId") Integer userId, @Param("courseId") Integer courseId);
    int insert(StudentCourse studentCourse);
    int update(StudentCourse studentCourse);
    //是否选过该课程
    int isChooseCourse(@Param("userId")Integer userId, @Param("courseId") Integer courseId);
    //选择该课程
    int chooseCourse(@Param("userId")Integer userId,@Param("courseId") Integer courseId);
} 